package com.hyinghua.pojod对Bean注解;

import org.springframework.stereotype.Component;

/**
 * Category class
 *
 * @author chenyeqing
 * @date 2020/12/28
 */
@Component("c")
public class Category {
    private int id;
    private String name="Category 1";


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

/*  @Override
    public String toString() {
        return "Category [id=" + id + ", name=" + name + "]";
    }*/


}